package com.take.state;

import lombok.Getter;

//<!-- 1待付款（默认直接进入2状态），2待派送，3已派送，4已完成，0已取消   -->
@Getter
public enum OrderStateEnum {

    CANCEL(0, "已取消"),
    WAIT_PAYMENT(1, "待付款"),
    WAIT_DELIVER(2, "待派送"),
    WAIT_RECEIVE(3, "派送中"),
    RECEIVED(4, "已完成");


    private final int state;
    private final String desc;

    OrderStateEnum(int state, String desc) {
        this.state = state;
        this.desc = desc;
    }

    public int getState() {
        return state;
    }

    public String getDesc() {
        return desc;
    }
}
